package com.ty.day5;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/10 11:07
 */
public class Three {
    public static void main(String[] args) {
        int i = 2, j;
        while (i <= 100) {
            j = 2;
            while (j <= Math.sqrt(i)) {
                if (i % j == 0) {
                    break;
                }
                j++;
            }
            if (j >= Math.sqrt(i)) {
                System.out.print(i + " ");
            }
            i++;
        }
    }
}
